package com.idol.sql.session;

import java.util.List;

/**
 * @author Supreme_Sir
 * @version 1.0
 * @className SqlSession
 * @description
 * @date 2020/9/26 16:33
 **/
public interface SqlSession {
    <E> List<E> selectAll(String statementID, Object... params)  throws Exception;

    <T> T selectOne(String statementID, Object... params) throws Exception;

    void insert(String statementID, Object... params) throws Exception;

    void delete(String statementID, Object... params) throws Exception;

    void modify(String statementID, Object... params) throws Exception;

    <T> T getMapper(Class<?> mapperClass);
}
